<h2>Profil Guru </h2>
<br clear="all"/>
<table class="table tablepager">
    <thead>
        <tr>
            <th width="10px">No.</th>
            <th width="50px">NUPTK</th>
            <th width="50px">NIP</th>
            <th>Nama</th>
            <th width="50px">Jenis Kelamin</th>
            <th width="50px">Pendidikan Terakhir</th>
            <th width="50px">Status</th>
            <th width="120px">Aksi</th>
        </tr>
    </thead>
    <?php
        $jk = $this->referensi->get_list_referensi("jenis_kelamin");
        $agama = $this->referensi->get_list_referensi("agama");
        $sg = $this->referensi->get_list_referensi("status_guru");
        $jp = $this->referensi->get_list_referensi("jenjang_pendidikan");
    ?>
    <tbody>
        <?php $no=1 ?>
        <?php foreach($data as $detail): ?>
            <tr>
                <td class="center"><?php echo $no++ ?></td>
                <td  class="center"><?php echo $detail['nuptk']?></td>
                <td  class="center"><?php echo $detail['nip']?></td>
                <td ><?php echo strtoupper($detail['nama'])?></td>
                <td class="center" ><?php echo $jk[$detail['jenis_kelamin_id']]?></td>
                <td class="center"><?php echo $jp[$detail['jenjang_pendidikan_id']]?></td>
                <td ><?php echo $sg[$detail['status_guru_id']]?></td>
                <td class="center">
                    <?php echo anchor("staf/guru/detail/".$detail['nip'],"detail") ?> |
                    <?php echo anchor("staf/guru/edit/".$detail['nip'],"edit") ?> |
                    <?php echo anchor("staf/guru/delete/".$detail['nip'],"delete",array("onclick"=>"return confirm('Apakah Anda yakin akan menghapus data ini?')")) ?>
                </td>
            </tr>
        <?php endforeach ?>
    </tbody>
</table>
<?php $this->load->view("elements/pager") ?>
<?php echo anchor("staf/guru/add", "Tambah Data", array("class"=>"button")) ?>
